package com.happiness.gateway.annotation;


import com.happiness.gateway.config.exception.GlobalFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@FeignClient
public @interface CustomFeignClient {
    String value() default "";


    @AliasFor("value")
    String name() default "";

    Class<?>[] configuration() default {GlobalFeignFallBack.class};


    String url() default "${feign.rpc.url:http://localhost:${server.port:8080}}";

    String path() default "";

}
